module.exports = {
  rules: [{
    entry: ["babel-polyfill",'./src/app.js'],
    test: /\.less$/,
    use: [{
      loader: 'style-loader',
    }, {
      loader: 'css-loader', // translates CSS into CommonJS
    }, {
      loader: 'less-loader', // compiles Less to CSS

    }],
    // ...other rules
  }],
  css: {
    loaderOptions: {
      less: {
        lessOptions: {
          modifyVars: {
            'primary-color': '#00893d',
            'link-color': '#00893d',
            'danger-color': '#e62c27',
            'border-radius-base': '2px',
          },
          javascriptEnabled: true,
        },
      },
    },
  },
}
